<?php
namespace App\Params\Backend;
use App\Params\Param;
/**
 * 支付方式更新查询参数
 *
 * @author: WangBin
 * @date: 2022/01/19
 * @mail: <849850352@qq.com>
 */
class PayUpdateParam extends Param
{
    public $pay_id = 0;
    public $title;
    public $pay_key;
    public $intro = '';
    public $icon_url = '';
    public $sort_num = 1;
    public $is_active = 1;
    public $store_id;

    public function rules()
    {
        return [
            'title' => 'required|string',
            'pay_id' => 'nullable|integer',
            'store_id' => 'required|integer',
            'pay_key' => 'required|string',
            'intro' => 'nullable|string',
            'icon_url' => 'nullable|string',
            'is_active' => 'required|integer|in:0,1',
            'sort_num' => 'nullable|integer|min:1',
        ];
    }

    /**
     * @return mixed
     */
    public function getPayId()
    {
        return $this->pay_id;
    }

    /**
     * @param mixed $pay_id
     */
    public function setPayId($pay_id): void
    {
        $this->pay_id = $pay_id;
    }

    /**
     * @return mixed
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * @param mixed $title
     */
    public function setTitle($title): void
    {
        $this->title = $title;
    }

    /**
     * @return mixed
     */
    public function getPayKey()
    {
        return $this->pay_key;
    }

    /**
     * @param mixed $pay_key
     */
    public function setPayKey($pay_key): void
    {
        $this->pay_key = $pay_key;
    }

    /**
     * @return mixed
     */
    public function getIntro()
    {
        return $this->intro;
    }

    /**
     * @param mixed $intro
     */
    public function setIntro($intro): void
    {
        $this->intro = $intro;
    }

    /**
     * @return mixed
     */
    public function getIconUrl()
    {
        return $this->icon_url;
    }

    /**
     * @param mixed $icon_url
     */
    public function setIconUrl($icon_url): void
    {
        $this->icon_url = $icon_url;
    }

    /**
     * @return mixed
     */
    public function getSortNum()
    {
        return $this->sort_num;
    }

    /**
     * @param mixed $sort_num
     */
    public function setSortNum($sort_num): void
    {
        $this->sort_num = $sort_num;
    }

    /**
     * @return mixed
     */
    public function getIsActive()
    {
        return $this->is_active;
    }

    /**
     * @param mixed $is_active
     */
    public function setIsActive($is_active): void
    {
        $this->is_active = $is_active;
    }

    /**
     * @return mixed
     */
    public function getStoreId()
    {
        return $this->store_id;
    }

    /**
     * @param mixed $store_id
     */
    public function setStoreId($store_id): void
    {
        $this->store_id = $store_id;
    }
}
